<?php


namespace backend\modules\tool\controllers;


use backend\modules\tool\DataSource\Log\Log;
use backend\modules\tool\excel\ExcelToolController;
use backend\modules\tool\helpers\functions;

class LogController extends ExcelToolController
{
    public function SetExcelModel()
    {
        // TODO: Implement SetExcelModel() method.
    }
    public function actionIndex(){
        header('HTTP/1.1 200 Ok');
        $id=functions::HttpParams('id');
        echo  json_encode(['data'=>Log::SingleTon($id)->getLog()]);exit();
    }
}